﻿using Shop.Base.Entity;
using Shop.Base.Entity.Insert;
using Shop.Base.Entity.Update;
using Shop.Entity;
using Shop.Interface;
using System.Collections.Generic;

namespace Shop.Base.Interface
{
  public  interface IShopBaseKeyword:IBase
    {
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="keyword">关键词</param>
        /// <param name="isDel">是否已删除</param>
        /// <param name="isShow">是否前端显示</param>
        /// <param name="pageIndex">当前第几页</param>
        /// <param name="pageSize">每页显示数量</param>
        /// <param name="total">输出总数</param>
        /// <returns></returns>
        List<ShopBaseKeywordPo> GetPage(string keyword, int isDel, int isShow, int pageIndex, int pageSize, out int total);
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="t">新增对象</param>
        /// <param name="com">操作人</param>
        bool Insert(AddShopBaseKeyword t, ComUser com);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="t">修改对象</param>
        /// <param name="com">操作人</param>
        bool Update(UpdateShopBaseKeyword t, ComUser com);
    }
}
